<script type="text/javascript">
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
</script>
<link rel="stylesheet" type="text/css" href="modules/InnoForum/pnjavascript/tooltip/style.css">
<!-- เอาไปแปะไว้ในเทมเพลท  <script src="modules/IShopStore/pnjavascript/tooltip/jquery.tools.min.js" type="text/javascript"></script>-->
<!--*************************************************start page master***************************************************-->
  <!--[if $pagetype neq 'home']-->
	<div id="breadcrumb">
  <div class="breadcrumb_l"></div>
  <div class="breadcrumb_c">
  	<ul>
        <li>
					<a href="<!--[pngetbaseurl]-->" >
						<strong>หน้าแรก</strong>
					</a>
				</li>
        <li>
					<a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='favourite']-->" >
						<strong><!--[pnml name='_INNOFORUM_USER_STD_HEADER_MyFavourite']--></strong>
					</a>
				</li>
    </ul>
  </div>
  <div class="breadcrumb_r"></div>
  </div>
	<div class="topic_subcategory">
      <h2>
				หมวดหมู่หลัก
        <!--[if not empty($_GET.category_id)]-->
        <!--[$extendResult.category_name]-->
        <!--[/if]-->
      </h2>  
	</div>
		
        <!-- Display subcategory -->
        <!--[if count($extendResult.subcategory) gt 0 && empty($smarty.get.subcategory_id)]-->   
              <!--[pnml name='_INNOFORUM_USER_SubCategories']-->
              <!--[if not empty($smarty.get.subcategory_id)]-->
              <!--[$extendResult.subcategory_name]-->
              <!--[/if]-->
								<div class="list_sub_cate">
									<!--[foreach from=$extendResult.subcategory item=subcate]-->
									<div class="cate_item" onclick="location.href='<!--[pnmodurl modname='InnoForum' func='list' ctrl='topics' category_id=$_GET.category_id subcategory_id=$subcate.id]--><!--[$get_type_id]--><!--[$get_user_id]-->'">
											<img src="<!--[modulepath]-->/pnimages/bullet_orange.png" width="16px" height="16px" align="absmiddle" alt="หมวดหมู่ย่อย"/>
											<a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='topics' category_id=$_GET.category_id subcategory_id=$subcate.id]--><!--[$get_type_id]--><!--[$get_user_id]-->">
											<!--[$subcate.name]-->
											</a>
									</div>
									<!--[/foreach]--> 
								</div>
        <!--[/if]-->
        <!-- Display brand -->
        <!--[if count($extendResult.brandArray) gt 0 && empty($smarty.get.carproperty_id)]-->
            <h3>ยี่ห้อ
              <!--[if not empty($smarty.get.carproperty_id)]-->
              <!--[$extendResult.brandArray]-->
              <!--[/if]-->
            </h3>
							<div class="list_brand">
              <!--[foreach from=$extendResult.brandArray item=brand]-->
								<div class="cate_item">
										<img src="<!--[modulepath]-->/pnimages/bullet_orange.png" width="16px" height="16px" align="absmiddle" alt="หมวดหมู่ย่อย"/>
										<a href="<!--[pnmodurl modname='InnoForum' 
																						func='list' 
																						ctrl='topics' 
																						category_id=$smarty.get.category_id 
																						subcategory_id=$smarty.get.subcategory_id 
																						brand_id=$brand.id
														 ]-->
												<!--[$get_type_id]--><!--[$get_user_id]-->"
										>
										<!--[$brand.name]-->
										</a>
								</div>
              <!--[/foreach]--> 
							</div>
        <!--[/if]-->
        <!-- Display Car property -->
        <!--[if count($extendResult.carPropertiesArray) gt 0 && empty($smarty.get.brand_id)]-->
            <h3>
              คุณสมบัติ
              <!--[if not empty($smarty.get.brand_id)]-->
              <!--[$extendResult.carPropertiesArray]-->
              <!--[/if]-->
            </h3>
						<div class="list_properties">
              <!--[foreach from=$extendResult.carPropertiesArray item=car_property]-->
									<div class="cate_item">
                  <img src="<!--[modulepath]-->/pnimages/bullet_orange.png" width="16px" height="16px" align="absmiddle" alt="หมวดหมู่ย่อย"/>
                  <a href="<!--[pnmodurl modname='InnoForum' 
                                          func='list' 
                                          ctrl='topics' 
                                          category_id=$smarty.get.category_id 
                                          subcategory_id=$smarty.get.subcategory_id 
                                          carproperty_id=$car_property.id
                           ]-->
                      <!--[$get_type_id]--><!--[$get_user_id]-->"
                  >
                  <!--[$car_property.name]-->
                  </a>
									</div>
              <!--[/foreach]--> 
						</div>
        <!--[/if]-->
        <!-- Display model -->
        <!--[if count($extendResult.modelArray) gt 0 ]-->
            <h3> รุ่น</h3>
						<div class="list_model">
              <!--[foreach from=$extendResult.modelArray item=model]-->
								<div class="cate_item">
                  <img src="<!--[modulepath]-->/pnimages/bullet_orange.png" width="16px" height="16px" align="absmiddle" alt="หมวดหมู่ย่อย"/>
                  <a href="<!--[pnmodurl modname='InnoForum' 
                                          func='list' 
                                          ctrl='topics' 
                                          category_id=$smarty.get.category_id 
                                          subcategory_id=$smarty.get.subcategory_id 
                                          brand_id=$smarty.get.brand_id
                                          model_id=$model.id
                           ]-->
                      <!--[$get_type_id]--><!--[$get_user_id]-->"
                  >
                  <!--[$model.name]-->
                  </a>
								</div>
              <!--[/foreach]--> 
						</div>
        <!--[/if]-->
				<div class="search_porduct">
						<form name="form1" id="form1">
							<select name="menu1" onchange="MM_jumpMenu('parent',this,0)">
								<option value="<!--[ypgetcurrenturl query='order=']-->" <!--[selected cmp_value=$_GET.order obj_value='']--> ><!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_Auto']--></option>
								<option value="<!--[ypgetcurrenturl query='order=date']-->" <!--[selected cmp_value=$_GET.order obj_value='date']--> ><!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_ByDatePost']--></option>
								<option value="<!--[ypgetcurrenturl query='order=title']-->" <!--[selected cmp_value=$_GET.order obj_value='title']--> ><!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_ByName']--></option>
								<option value="<!--[ypgetcurrenturl query='order=view']-->" <!--[selected cmp_value=$_GET.order obj_value='view']--> ><!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_ByView']--></option>
								<option value="<!--[ypgetcurrenturl query='order=post']-->" <!--[selected cmp_value=$_GET.order obj_value='post']--> ><!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_ByReply']--></option>
							</select>
						</form>
							<!--[ include file='inc_search_topics.htm' ]-->
				</div>
				<h1 class="h1"><!--[pnml name='_INNOFORUM_USER_Topic']-->&nbsp;<!--[if not empty($smarty.get.subcategory_id)]--><!--[$extendResult.subcategory_name]-->&nbsp;<!--[elseif not empty($smarty.get.category_id)]--><!--[$extendResult.category_name]-->&nbsp;<!--[/if]--><!--[if not empty($smarty.get.type_id)]--><!--[get_topic_type type_id=$smarty.get.type_id]-->&nbsp;<!--[/if]--><!--[if not empty($smarty.get.user_id)]--><!--[pnml name='_INNOFORUM_USER_Owner']-->&nbsp;<!--[$extendResult.user._UREALNAME]-->&nbsp;<!--[/if]--></h1>
<!--[else]-->
<!--[/if]-->
<!-- Template -->
<!--*****************************************************End page master**********************************************-->
<style type="text/css">
#preview{
	position:absolute;
	background:#fff;
	padding:5px;
	display:none;
	color:#333;
	font-size:12px;
	max-height:530px;
	-moz-box-shadow: 0px 0px 8px #333;
	-webkit-box-shadow: 0px 0px 8px #333;
	box-shadow: 0px 0px 8px #333;
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;
	border-radius: 2px;

	}
#preview img{width:400px; max-height:500px;}
</style>
<script src="modules/InnoForum/pnjavascript/tooltip_image/main.js" type="text/javascript"></script>
  <!--[foreach from=$objectArray item=item]-->
    <!--[assign_val assign="item_id" key=$item.id]-->
    <!--[check_image_directory_path id=$item.id]-->
    <!--[assign_scan_firstimage assign="fstimage" key=$medium_directory_path]-->
    <!--[get_gid_by_uid uid=$item.cr_uid]-->
		<div class="product_list">
			<div class="column_left">
				<div class="product_image">
					<!--[if $item.has_image]-->
						<a target="_blank" href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='posts' id=$item.id]-->" >
							<!--[if $item.firstimage]-->
								<img src="<!--[$medium_directory_path]--><!--[$item.firstimage]-->" width="100px" 
								rel="<!--[$item.title]-->"
								class="preview"
								alt="<!--[$large_directory_path]--><!--[if $item.firstimage]--><!--[$item.firstimage]--><!--[else]--><!--[$fstimage]--><!--[/if]-->"/>
							<!--[else]-->
								<!--[if $fstimage]-->
									<img src="<!--[$medium_directory_path]--><!--[$fstimage]-->" width="100px" alt="<!--[$item.title]-->"/>
								<!--[else]-->
									<img src="images/no_image80.jpg" width="100px" height="75px" alt="ไม่มีรูป"/>
								<!--[/if]-->
							<!--[/if]-->
						</a>
					<!--[else]-->
						<img src="images/no_image80.jpg" width="100px" height="75px" alt="ไม่มีรูป"/>
					<!--[/if]-->
				</div>
			</div><!--end column_left-->
			<div class="column_right">
				<div class="product_title">
				<h3>
					<a target="_blank" href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='posts' id=$item.id]-->">
						<!--[if $pagetype neq 'home']--><!--[$item.title|mb_truncate:25:"..."]--><!--[/if]--><!--[$item.title|mb_truncate:45:"..."]-->&nbsp;
					</a>
						<!--[if $item.is_new eq 'T']--><img width="28px" height="11px" src="<!--[modulepath]-->/pnimages/New_icons_32.gif" align="absmiddle" alt="ประกาศใหม่">
						<!--[/if]-->
						<!--[if $item.update_icon eq '1']--><img width="47px" height="10px" src="<!--[modulepath]-->/pnimages/animate_update.gif" align="absmiddle" alt="ข้อมูลเพิ่มเติม"/>
						<!--[/if]-->
						<!--[if $item.onsale eq '1']--><img width="51px" height="16px" src="<!--[modulepath]-->/pnimages/onsale.gif" align="absmiddle" alt="ลดราคาสุดๆ"/>
						<!--[/if]-->
				</h3>


				</div>
				<div class="product_detail">
					<!--[if $item.price_detail]-->
						<p><!--[$item.price_detail|mb_truncate:100:"..."]--></p>
					<!--[else]-->
						<!--[if is_numeric($item.price)]-->                               
								<!--[if $item.price eq '0' ]-->
									<!--[pnml name='_INNOFORUM_USER_NoPrice']-->
								<!--[else]-->             
									<!--[get_topic_type type_id=$item.type_id]-->&nbsp;<!--[$item.price|number_format:0]-->&nbsp;<!--[pnml name='_INNOFORUM_USER_Baht']-->
								<!--[/if]-->  
						<!--[else]-->
							<p><!--[$item.price|mb_truncate:100:"..."]--></p>
						<!--[/if]-->                  
					<!--[/if]-->
				</div>
				<div class="product_price">
					<!--[if  is_numeric($item.price)]-->
						<!--[if $item.price eq '0' ]-->                    
							<!--[pnml name='_INNOFORUM_USER_NoPrice']-->
						<!--[else]-->             
							<!--[$item.price|number_format:0]-->฿
						<!--[/if]-->  
					<!--[else]-->
						<!--[$item.price|mb_truncate:13:"..."]-->฿
					<!--[/if]-->
				</div>
				<div class="product_category">
					<!--[getcategory_by_topic_id topic_id=$item.id]-->
					<a href="">หมวดหมู่</a>
					<a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='topics' type_id=$item.type_id ]-->" title="<!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_TYPEGO']--><!--[get_topic_type type_id=$item.type_id]-->"><img src="<!--[modulepath]-->/pnimages/icon/list.png">&nbsp;<!--[get_topic_type type_id=$item.type_id]--></a>
					<a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='topics' category_id=$category_id ]-->" title="<!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_SUBCATGO']--><!--[$category]-->"><img src="<!--[modulepath]-->/pnimages/icon/list.png">&nbsp;<!--[$category]--></a>
					<a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='topics' category_id=$category_id subcategory_id=$subcategory_id  ]-->" title="<!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_SUBCATGO']--><!--[$subcategory]-->"><img src="<!--[modulepath]-->/pnimages/icon/list.png">&nbsp;<!--[$subcategory]--></a>                    
				</div>
				<div class="product_other">
					<ul>
						<li>
							<img src="<!--[modulepath]-->/pnimages/icon/key.png" align="absmiddle" alt="รหัสประกาศ"  title="รหัสประกาศ"/>
							<!--[$item.ref_id]-->
							<!--[if $item.status eq 'T']--><img src="<!--[modulepath]-->/pnimages/rosette.png" align="absmiddle" alt="ประกาศแนะนำ" title="แนะนำ"/>
							<!--[/if]--> 
						</li>		
						<li>
							<img src="<!--[modulepath]-->/pnimages/icon/user-alt-2.png" align="absmiddle" alt="เจ้าของประกาศ" title="เจ้าของประกาศ"/>
							<a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='topics' user_id=$item.cr_uid]-->" title="<!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_MyallTopic']-->&nbsp;<!--[$item.name]-->">
							<!--[$item.name]-->
							</a>
						</li>
						<li>
							<img src="<!--[modulepath]-->/pnimages/icon/calendar-alt-2.png" align="absmiddle" alt="วันที่ลงประกาศ" title="วันที่ลงประกาศ"/>
							&nbsp;<!--[$item.cr_date|date_format:"%d/%m/%Y"]--> 
						</li>
						<li>
							<!--[$item.count_post]-->&nbsp;<img src="<!--[modulepath]-->/pnimages/icon/chat-active-alt-2.png" align="absmiddle" alt="จำนวนคนตอบ" title="จำนวนคนตอบ"/> 
						</li>
						<li>
							<!--[$item.count_view]-->&nbsp;<img src="<!--[modulepath]-->/pnimages/icon/view.png" align="absmiddle" alt="จำนวนคนดู" title="จำนวนคนดู"/>
						</li>						
				</ul>
				</div>
			</div><!--end column_right-->
  </div>
	<!--[/foreach]-->   
<!-- end Template -->

<!--[if $pagetype neq 'home']-->
				<div class="page_action">
				<!--[innopager  show=page												
                								img_prev="modules/InnoForum/pnimages/back.png"
												img_next="modules/InnoForum/pnimages/next.png"
												rowcount=$pager.numitems 
												limit=$pager.itemsperpage 
												posvar=startnum 
												shift=0
												request_uri=$smarty.server.REQUEST_URI						
												
				]-->
				</div>

<!--[else]-->
<!--[/if]-->
<script> 
$(document).ready(function() {
$(".product_other img[title]").tooltip({
   offset: [10, 2],
   effect: 'slide'
})
});

$(document).ready(function() {
$("").tooltip({
   offset: [10, 2],
   effect: 'slide'
})
});
</script> 

